package com.qf.spring;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TestTask {
    @Scheduled(fixedRate = 5000)
    public void task1(){
        System.out.println("定时任务执行了"+System.currentTimeMillis());
    }
}
